package com.qingke.spring3.demo7;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.qingke.spring3.demo3.CustomerDao;
import com.qingke.spring3.demo4.OrderDao;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:applicationContext4.xml")
public class SpringTest7 {
	@Autowired
	@Qualifier("userDao")
	private UserDao userDao;

	public SpringTest7() {
		// TODO Auto-generated constructor stub
	}
	@Test
	public void demo1(){
		userDao.add();
		userDao.delete();
		userDao.update();
		userDao.find();
	}
}
